package com.yby6.face.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yby6.face.domain.SysUserFaceInfo;
import com.yby6.face.dto.FaceUserInfo;

import java.util.List;

/**
 * @program: yangbuyi-rbac
 * @ClassName: SysUserFaceInfoMapper
 * @create: 2022-04-24 01:15
 * @author: Yang Shuai
 * @since： JDK1.8
 * @SysUserFaceInfoMapper: ${desc}$
 **/
public interface SysUserFaceInfoMapper extends BaseMapper<SysUserFaceInfo> {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(SysUserFaceInfo record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    SysUserFaceInfo selectByPrimaryKey(Integer id);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(SysUserFaceInfo record);

    /**
     * 根据分组Id
     * 从数据库中取出人脸库
     *
     * @param groupId
     * @return 人脸库
     */
    List<FaceUserInfo> getUserFaceInfoByGroupId(Integer groupId);

    /**
     * 新增人脸识别
     *
     * @param userFaceInfo
     */
    void insertUserFaceInfo(SysUserFaceInfo userFaceInfo);


    /**
     * 查询用户人脸识别
     *
     * @param id 用户人脸识别ID
     * @return 用户人脸识别
     */
    public SysUserFaceInfo selectSysUserFaceInfoById(Long id);

    /**
     * 查询用户人脸识别列表
     *
     * @param sysUserFaceInfo 用户人脸识别
     * @return 用户人脸识别集合
     */
    public List<SysUserFaceInfo> selectSysUserFaceInfoList(SysUserFaceInfo sysUserFaceInfo);

    /**
     * 新增用户人脸识别
     *
     * @param sysUserFaceInfo 用户人脸识别
     * @return 结果
     */
    public int insertSysUserFaceInfo(SysUserFaceInfo sysUserFaceInfo);

    /**
     * 修改用户人脸识别
     *
     * @param sysUserFaceInfo 用户人脸识别
     * @return 结果
     */
    public int updateSysUserFaceInfo(SysUserFaceInfo sysUserFaceInfo);

    /**
     * 删除用户人脸识别
     *
     * @param id 用户人脸识别ID
     * @return 结果
     */
    public int deleteSysUserFaceInfoById(Long id);

    /**
     * 批量删除用户人脸识别
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysUserFaceInfoByIds(Long[] ids);

}
